package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Member;
import com.itheima.pojo.Setmeal;

import java.util.Date;
import java.util.List;
import java.util.Map;


public interface MemberService {
    Member findByTel(String telephone);

    void add(Member member);

    List<Integer> getMemberReport(List<String> months);

    PageResult findPage(QueryPageBean queryPageBean) throws Exception;

    Member findById(Integer id);

    void edit(Member member);

    void addMember(Member member);

    //修改客户端个人资料
    void updateMemberDetail(Member member);

    boolean deleteMember(Integer id);

    //移动端通过日期查询用户的所有预约信息
    List<Map> findByTelAndOrderDate(Map map);

    // 通过出生日期查询会员年龄
    List<Map<String,Object>> findAgeByBirthday();

    List<Setmeal> findSetmealName(Integer id);

    List<CheckGroup> findCheckGroup(Integer id);

    //移动端通过手机号查询所有预约记录
    List<Map> findOrderByTel(String telephone);

    //通过密码和手机号查询会员信息
    Member findByTelAndPassword(Map map);

    void editByTel(Member member);

    List<CheckItem> findCheckItemByCheckGroupId(Integer id);

    void addByCondition(String name, String phoneNumber, Date orderDate);

    Member findByName(String name);
}
